﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddColumn2.aspx.cs" Inherits="Whir_System_Module_Role_AddColumn2" %>

<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>栏目管理</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    html { 
        overflow-x:hidden; /*隐藏水平滚动条*/ 
    } 
    .WizardSideBar td{
        border:1px solid #697f96;
        padding:5px;
    }
    .WizardLeft{
        color:#0000cc;
        padding:5px;
        margin-top:10px;
        text-decoration:none;
    }
    .WizardLeft:link, .WizardLeft:visited{
        color:#006eb3;
        text-decoration:none;
    }
    .WizardLeft:hover{
        color:#000000;
        text-decoration:underline;
    }
    </style>

    <script language="javascript">
    function closediv(){    
        parent.jBox.hideModel();
        parent.$('#jBoxHolder').remove(); 
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Wizard ID="Wizard1" runat="server" Height="300px" Width="645px" ActiveStepIndex="0"
            OnFinishButtonClick="Wizard1_FinishButtonClick">
            <WizardSteps>
                <asp:WizardStep runat="server" Title="初步设置">
                    <table border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#697f96"
                        width="555">
                        <tr>
                            <td height="30" align="center" class="form_tdText">父级栏目 </td>
                            <td align="left" class="form_td">
                                <asp:DropDownList ID="ddlParent" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">栏目名称 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtColumnName" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                    ID="rfvtxtColumnName" runat="server" ErrorMessage="* 必填" ControlToValidate="txtColumnName"
                                    Display="Dynamic"></asp:RequiredFieldValidator><span class="form_desc">此栏目在栏目导航中的名称</span></td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">栏目排序 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtSort" runat="server" MaxLength="3"></asp:TextBox><asp:RequiredFieldValidator
                                    ID="rfvtxtSort" runat="server" ErrorMessage="* 必填" ControlToValidate="txtSort"
                                    Display="Dynamic"></asp:RequiredFieldValidator><asp:RangeValidator ID="rvtxtSort"
                                        runat="server" ErrorMessage="* 必须为数字" ControlToValidate="txtSort" Display="Dynamic"
                                        MaximumValue="200" MinimumValue="0" Type="Integer"></asp:RangeValidator><span class="form_desc">此栏目在栏目导航中的位置</span></td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">生成 </td>
                            <td align="left" class="form_td">
                                <asp:CheckBox ID="cbIsCreateHtml" runat="server" Text="当前栏目是否生成静态（*. html）页面" />
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">单页 </td>
                            <td align="left" class="form_td">
                                <asp:RadioButtonList ID="rblIsSinglePage" runat="server" RepeatDirection="Horizontal"
                                    RepeatLayout="Flow">
                                    <asp:ListItem Text="当前栏目是单篇文章页面" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="当前栏目是列表页面" Value="0" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">权限 </td>
                            <td align="left" class="form_td">
                                <asp:CheckBox ID="cbIsUse" runat="server" Text="当前栏目是否使用管理权限" Checked="True" />
                                <font color="red">〖注：创建后该项将不可更改〗</font> </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">MetaTitle </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtMetaTitle" runat="server" Width="180px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">KeyWord </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtMetaKey" runat="server" TextMode="MultiLine" Width="400px" Height="60px"
                                    CssClass="input_textarea"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">Content </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtMetaDesc" runat="server" TextMode="MultiLine" Width="400px" Height="60px"
                                    CssClass="input_textarea"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td height="30" align="center" class="form_tdText">栏目小图 </td>
                            <td align="left" class="form_td">
                                <asp:FileUpload ID="FileUpload1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" Title="完整设置">
                    <table border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#697f96"
                        width="555">
                        <tr>
                            <td height="30" align="center" class="form_tdText">处理页面 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtOperatePage" runat="server" Width="250px"></asp:TextBox>
                                <select id="selectPro" onchange="selectpro(this.options.selectedIndex)">
                                    <option selected="selected">== 系统预留模块 == </option>
                                    <option>在线反馈</option>
                                    <option>网上调查</option>
                                </select>
                                <br />
                                <span class="form_desc">当前栏目不用功能模块处理，用自定义的程序来处理</span> </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">后台参数 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtParam" runat="server" Width="300px"></asp:TextBox>
                                <span class="form_desc">程序传入的参数</span> </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">生成目录 </td>
                            <td align="left" class="form_td">
                                <asp:DropDownList ID="ddlDirectory" runat="server">
                                    <asp:ListItem Text="中文文件夹" Value="cn"></asp:ListItem>
                                    <asp:ListItem Text="英文文件夹" Value="en"></asp:ListItem>
                                </asp:DropDownList>
                                <span class="form_desc">该栏目生成的静态页面存放的位置</span></td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">静态页面名称 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtUrl" runat="server" Width="180px" Text="*.html"></asp:TextBox>
                                <span class="form_desc">此栏目生成的静态文件名称</span> </td>
                        </tr>
                        <tr>
                            <td width="80" height="30" align="center" class="form_tdText">所属表单 </td>
                            <td align="left" class="form_td">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        选择模块：
                                        <asp:DropDownList ID="ddlModule" runat="server" OnSelectedIndexChanged="ddlModule_SelectedIndexChanged"
                                            AutoPostBack="true" CssClass="select_default">
                                        </asp:DropDownList><br />
                                        选择功能模块：
                                        <asp:DropDownList ID="ddlModel" runat="server" OnSelectedIndexChanged="ddlModel_SelectedIndexChanged"
                                            AutoPostBack="true" CssClass="select_default">
                                            <asp:ListItem Text="-- 功能模块列表 --" Value="-1"></asp:ListItem>
                                        </asp:DropDownList><br />
                                        <div id="divForm" runat="server" visible="false">
                                            选择表单：
                                            <asp:DropDownList ID="ddlForm" runat="server" CssClass="select_default">
                                            </asp:DropDownList></div>
                                        <div id="divForms" runat="server" visible="false">
                                            所属表单组：
                                            <asp:DropDownList ID="ddlModelForms" runat="server" CssClass="select_default">
                                            </asp:DropDownList></div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">首页模板 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtDefaultTemp" runat="server" Width="180px" />
                                <whir:FileBrowserButton ID="FileBrowserButton2" runat="server" Text="点击选择" AssociatedControlID="txtDefaultTemp" ResourceType="Template" /><br />
                                <span class="form_desc">当前栏目为首页则选择此项</span> </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">列表页模板 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtListTemp" runat="server" Width="180px" />
                                <whir:FileBrowserButton ID="FileBrowserButton1" runat="server" Text="点击选择" AssociatedControlID="txtListTemp" /><br />
                                <span class="form_desc">当前栏目为列表页则选择此项</span> </td>
                        </tr>
                        <tr>
                            <td height="30" align="center" class="form_tdText">内容页模板 </td>
                            <td align="left" class="form_td">
                                <asp:TextBox ID="txtContentTemp" runat="server" Width="180px" />
                                <whir:FileBrowserButton ID="FileBrowserButton3" runat="server" Text="点击选择" AssociatedControlID="txtContentTemp" /><br />
                                <span class="form_desc">当前栏目为单篇信息页面，或者是列表页的详细内容页面选择此项</span> </td>
                        </tr>
                    </table>
                </asp:WizardStep>
            </WizardSteps>
            <StartNextButtonStyle CssClass="btn_default" />
            <FinishCompleteButtonStyle CssClass="btn_default" />
            <StepNextButtonStyle CssClass="btn_default" />
            <FinishPreviousButtonStyle CssClass="btn_default" />
            <NavigationButtonStyle CssClass="btn_default" />
            <SideBarStyle VerticalAlign="Top" CssClass="WizardSideBar" />
            <StepPreviousButtonStyle CssClass="btn_default" />
            <CancelButtonStyle CssClass="btn_default" />
            <StepStyle VerticalAlign="Top"></StepStyle>
            <SideBarButtonStyle CssClass="WizardLeft" />
        </asp:Wizard>
    </form>
</body>
</html>

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

<script language="javascript">
function selectpro(id){
    var operatePage = document.getElementById('<%=txtOperatePage.ClientID %>');
    if(id == '0'){
        operatePage.value = '';
    }else if(id == '1'){
        operatePage.value = 'Module/Reply/Default.aspx';
    }else if(id == '2'){
        operatePage.value = 'Module/Survey/Default.aspx';
    }
}
</script>

